<?php

/**
 * Classe jaMain
 *
 * @author Falci
 * @package janela
 */
class jaMain {

    public function  __construct() {

        session_start();
        if(!isset($_SESSION['setor'])){
            $this->index();
        } else {
            $this->lista();
        }
    }

    public function lista(){

        $pagina = "frLista.php";
        $_TITLE = ":: TCC ::";
        $_JS = Array("jquery2.js","interface.js","load_index.js","ajax.js");

        include("include/pagina.php");
    }

    public function index(){

        $pagina = "frSelSetor.php";
        $_TITLE = ":: TCC :: Bem-Vindo";
        $_JS = Array("jquery2.js","interface.js","load_index.js");

        include("include/pagina.php");
    }

}
?>